package com.cw.mapper;

import com.cw.beans.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;

@Mapper
public class UserMapperImpl implements UserMapper{
    @Autowired
    private UserMapper userMapper;

    public User getUser(User user) {
        return null;
    }

    @Override
    public void registeruser(User user) {

    }


    public ArrayList<User> getUserList() {
        return userMapper.getUserList();
    }

    @Override
    public User getUserById(int id) {
        return  userMapper.getUserById(id);
    }

    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public void updateUser(User user) {
userMapper.updateUser(user);
    }

    @Override
    public User getUserByUserName(String username) {
        return userMapper.getUserByUserName(username);
    }

    @Override
    public void del(int id1) {

    }
}
